package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_FbaPlan", catalog="Id")
public class TccFbaPlan extends BaseEntity<TccFbaPlan> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="CreationMethod", nameJava="creationMethod", typeDataBase="tinyint")
	private Integer creationMethod;
	@YsField(nameDataBase="DeclarationState", nameJava="declarationState", typeDataBase="tinyint")
	private Integer declarationState;
	@YsField(nameDataBase="DeliverState", nameJava="deliverState", typeDataBase="tinyint")
	private Integer deliverState;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="VgsJc", nameJava="vgsJc", typeDataBase="varchar")
	private String vgsJc;
	@YsField(nameDataBase="ShopId", nameJava="shopId", typeDataBase="bigint")
	private Long shopId;
	@YsField(nameDataBase="ShopName", nameJava="shopName", typeDataBase="varchar")
	private String shopName;
	@YsField(nameDataBase="AuditingUser", nameJava="auditingUser", typeDataBase="varchar")
	private String auditingUser;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="AuditingTime", nameJava="auditingTime", typeDataBase="datetime")
	private Date auditingTime;
	@YsField(nameDataBase="InboundPlanId", nameJava="inboundPlanId", typeDataBase="varchar")
	private String inboundPlanId;
	@YsField(nameDataBase="EvenlyBoxNum", nameJava="evenlyBoxNum", typeDataBase="int")
	private Integer evenlyBoxNum;
	@YsField(nameDataBase="BoxRoleEditNo", nameJava="boxRoleEditNo", typeDataBase="int")
	private Integer boxRoleEditNo;
	@YsField(nameDataBase="GenerateNo", nameJava="generateNo", typeDataBase="int")
	private Integer generateNo;
	@YsField(nameDataBase="ApiGetStatus", nameJava="apiGetStatus", typeDataBase="tinyint")
	private Integer apiGetStatus;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="ApiGetTime", nameJava="apiGetTime", typeDataBase="datetime")
	private Date apiGetTime;
	@YsField(nameDataBase="ApiErrorMsg", nameJava="apiErrorMsg", typeDataBase="varchar")
	private String apiErrorMsg;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccFbaPlan setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TccFbaPlan setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public TccFbaPlan setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TccFbaPlan setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public Integer getCreationMethod() {
		return creationMethod;
	}
	public TccFbaPlan setCreationMethod(Integer creationMethod) {
		this.creationMethod = creationMethod;
		return this;
	}
	public Integer getDeclarationState() {
		return declarationState;
	}
	public TccFbaPlan setDeclarationState(Integer declarationState) {
		this.declarationState = declarationState;
		return this;
	}
	public Integer getDeliverState() {
		return deliverState;
	}
	public TccFbaPlan setDeliverState(Integer deliverState) {
		this.deliverState = deliverState;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TccFbaPlan setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TccFbaPlan setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public String getVgsJc() {
		return vgsJc;
	}
	public TccFbaPlan setVgsJc(String vgsJc) {
		this.vgsJc = vgsJc;
		return this;
	}
	public Long getShopId() {
		return shopId;
	}
	public TccFbaPlan setShopId(Long shopId) {
		this.shopId = shopId;
		return this;
	}
	public String getShopName() {
		return shopName;
	}
	public TccFbaPlan setShopName(String shopName) {
		this.shopName = shopName;
		return this;
	}
	public String getAuditingUser() {
		return auditingUser;
	}
	public TccFbaPlan setAuditingUser(String auditingUser) {
		this.auditingUser = auditingUser;
		return this;
	}
	public Date getAuditingTime() {
		return auditingTime;
	}
	public TccFbaPlan setAuditingTime(Date auditingTime) {
		this.auditingTime = auditingTime;
		return this;
	}
	public String getInboundPlanId() {
		return inboundPlanId;
	}
	public TccFbaPlan setInboundPlanId(String inboundPlanId) {
		this.inboundPlanId = inboundPlanId;
		return this;
	}
	public Integer getEvenlyBoxNum() {
		return evenlyBoxNum;
	}
	public TccFbaPlan setEvenlyBoxNum(Integer evenlyBoxNum) {
		this.evenlyBoxNum = evenlyBoxNum;
		return this;
	}
	public Integer getBoxRoleEditNo() {
		return boxRoleEditNo;
	}
	public TccFbaPlan setBoxRoleEditNo(Integer boxRoleEditNo) {
		this.boxRoleEditNo = boxRoleEditNo;
		return this;
	}
	public Integer getGenerateNo() {
		return generateNo;
	}
	public TccFbaPlan setGenerateNo(Integer generateNo) {
		this.generateNo = generateNo;
		return this;
	}
	public Integer getApiGetStatus() {
		return apiGetStatus;
	}
	public TccFbaPlan setApiGetStatus(Integer apiGetStatus) {
		this.apiGetStatus = apiGetStatus;
		return this;
	}
	public Date getApiGetTime() {
		return apiGetTime;
	}
	public TccFbaPlan setApiGetTime(Date apiGetTime) {
		this.apiGetTime = apiGetTime;
		return this;
	}
	public String getApiErrorMsg() {
		return apiErrorMsg;
	}
	public TccFbaPlan setApiErrorMsg(String apiErrorMsg) {
		this.apiErrorMsg = apiErrorMsg;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccFbaPlan setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccFbaPlan setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccFbaPlan setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccFbaPlan tccFbaPlan(
		String bid,
		Long createChangeId,
		Integer effectStock,
		Integer creationMethod,
		Integer declarationState,
		Integer deliverState,
		String remark,
		String vgsbm,
		String vgsJc,
		Long shopId,
		String shopName,
		String auditingUser,
		Date auditingTime,
		String inboundPlanId,
		Integer evenlyBoxNum,
		Integer boxRoleEditNo,
		Integer generateNo,
		Integer apiGetStatus,
		Date apiGetTime,
		String apiErrorMsg,
		Integer status
			) {
		TccFbaPlan entity = new TccFbaPlan();
		entity.setBid(bid);
		entity.setCreateChangeId(createChangeId);
		entity.setEffectStock(effectStock);
		entity.setCreationMethod(creationMethod);
		entity.setDeclarationState(declarationState);
		entity.setDeliverState(deliverState);
		entity.setRemark(remark);
		entity.setVgsbm(vgsbm);
		entity.setVgsJc(vgsJc);
		entity.setShopId(shopId);
		entity.setShopName(shopName);
		entity.setAuditingUser(auditingUser);
		entity.setAuditingTime(auditingTime);
		entity.setInboundPlanId(inboundPlanId);
		entity.setEvenlyBoxNum(evenlyBoxNum);
		entity.setBoxRoleEditNo(boxRoleEditNo);
		entity.setGenerateNo(generateNo);
		entity.setApiGetStatus(apiGetStatus);
		entity.setApiGetTime(apiGetTime);
		entity.setApiErrorMsg(apiErrorMsg);
		entity.setStatus(status);
		return entity;
	}
}